package com.example.toolproject.demo.mapper;

import com.example.toolproject.demo.domain.LogMessage;
import org.apache.ibatis.annotations.Mapper;
import sun.rmi.runtime.Log;

import java.util.List;

/**
 * @author lvyongwei
 */
@Mapper
public interface LogMessageMapper {

    /**
     * 添加日志
     * @param log
     * @return
     */
    public boolean insertLog(LogMessage log);

    /**
     * 获取所有日志信息
     * @return
     */
    public List<LogMessage> getAll();
}
